#!/bin/bash

# ffmpeg 安装路径
export ipath=/e/qqtv/shell/工具/ffmpeg/win/ffmpeg

# 设置安装包执行路径
export PATH=$PATH:$ipath/bin
# 设置动态库路径
export PKG_CONFIG_PATH=$ipath/lib/pkgconfig

# 设置编译主目录路径
export homeMake=$(pwd)
cd $homeMake/build/

cd ffmpeg-4.4.4/
# 配置
./configure \
--enable-static \
--disable-everything \
--disable-debug \
--extra-cflags="-I/mingw/include" \
--extra-ldflags=-L/mingw/lib \
--prefix=/e/qqtv/shell/工具/ffmpeg/win/output \
--disable-doc \
--disable-htmlpages \
--disable-manpages \
--disable-podpages \
--disable-txtpages \
--disable-programs \
--disable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-decoders \
--enable-decoder=h264 \
--enable-decoder=mjpeg \
--enable-decoder=hevc \
--enable-decoder=aac \
--disable-encoders \
--enable-encoder=aac \
--disable-avfilter \
--disable-avdevice \
--disable-swscale \
--disable-demuxers \
--enable-demuxer=h264 \
--enable-demuxer=hevc \
--enable-demuxer=mjpeg \
--enable-demuxer=aac \
--enable-demuxer=avi \
--enable-demuxer=mov \
--enable-demuxer=mpegps \
--disable-iconv \
--disable-filters \
--enable-bsfs \
--disable-muxers \
--enable-muxer=avi \
--enable-muxer=mp4 \
--enable-muxer=adts \
--disable-protocols \
--enable-protocol=file \
--disable-parsers \
--enable-parser=h264 \
--enable-parser=hevc \
--enable-parser=mjpeg \
--disable-devices \
--enable-asm \
--enable-inline-asm \
--enable-hardcoded-tables \
--enable-hwaccel=h264_dxva2 \
--enable-hwaccel=hevc_dxva2 \
--disable-network \
--cpu=i686 \
--arch=x86_32


